<?php
//???是否登录过
$myid=isset($_COOKIE["myId"])?$_COOKIE["myId"]:null;
if($myid) echo "welcome";
else "access denied";
?>